home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / AppleShare IP SDK / ASIP User Authentication Module / Sample Code / Client UAM / ClientUAM.r next >
Encoding:
Text File  |  1998-07-17  |  1.2 KB  |  57 lines  |  [TEXT/CWIE]

  1. #include    "Types.r"
  2.  
  3. #define        MaxPassLength        64
  4.  
  5. type 'uamg'                                // General UAM resource
  6. {
  7.     integer    VersionNumber;                // version number for resource (currently 1)            
  8.     integer    UAMClass;                    // UAM class of this UAM (1-3)
  9.     integer    PasswordLength;                // password length (0-64)
  10.     byte    PassDlogFlag;                // set to 1 if using standard password dialog
  11.     byte    VolDlogFlag;                // set to 1 if using standard volume dialog
  12.     byte    UAMType;                    // UAM type ID (128-255)
  13.     byte    UReserved;                    // reserved for future expansion
  14. };
  15.  
  16. type 'uamn' as 'STR ';                    // UAM string resources
  17.  
  18.  
  19. resource 'uamg' (0, "Client UAM Info")
  20. {
  21.     0x0002,                                // version
  22.     0x0003,                                // class
  23.     MaxPassLength,                        // password length
  24.     0x01,                                // use standard password dialog
  25.     0x01,                                // use standard volume dialog
  26.     0xB1,                                // UAM type ID
  27.     0x00                                // reserved
  28. };
  29.  
  30. resource 'uamn' (0, "UAM name")            // Name shown in UAM dialog
  31. {
  32.     "Sample New API UAM"
  33. };
  34.  
  35. resource 'uamn' (1, "AFP UAM name")        // Name of AFP UAM string (matches the server UAM)
  36. {
  37.     "Kleartxt Passwrd"
  38. };
  39.  
  40. resource 'uamn' (2, "UAM Description string") // Description shown in password dialog
  41. {
  42.     "(Sample UAM)"
  43. };
  44.  
  45.  
  46. type 'DATA' (1000) { array { pstring; }; };
  47.  
  48.  
  49. resource 'STR ' (2000)
  50. {
  51.     "Test"
  52. };
  53.  
  54. resource 'STR ' (2001)
  55. {
  56.     "aaaa"
  57. };